import request from "./request"
import { ref, onMounted } from 'vue';
import { useApiStore } from '../stores/user'; // 假设你的store文件位于这个路径  

export const getData = () => {
  return request.get("/api/getimei2device", {
    params: {
      imei: "863313062572121"
    }
  })
}
// 。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
export const getHistoryData = () => {
  return request.get("/api/getDeviceHistoryInfoByDeviceName", {
    params: {
      sDataTable: "a_863313062572121_单路振弦频率_1",
      type: "1",
      page: "1",
      limit: "10"
    }
  })
}
// 。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
export const getHistoryData1 = () => {
  return request.get("/api/getDeviceHistoryInfoByDeviceName", {
    params: {
      sDataTable: "a_863313062572121_单路振弦温度_1",
      type: "1",
      page: "1",
      limit: "360"
    }
  })
}
export const getHistoryData11 = () => {
  return request.get("/api/getDeviceHistoryInfoByDeviceName", {
    params: {
      sDataTable: "a_863313062572121_单路振弦温度_1",
      type: "1",
      page: "2",
      limit: "360"
    }
  })
}
export const getHistoryData12 = () => {
  return request.get("/api/getDeviceHistoryInfoByDeviceName", {
    params: {
      sDataTable: "a_863313062572121_单路振弦温度_1",
      type: "1",
      page: "3",
      limit: "360"
    }
  })
}
export const getHistoryData13 = () => {
  return request.get("/api/getDeviceHistoryInfoByDeviceName", {
    params: {
      sDataTable: "a_863313062572121_单路振弦温度_1",
      type: "1",
      page: "4",
      limit: "360"
    }
  })
}
export const getHistoryData14 = () => {
  return request.get("/api/getDeviceHistoryInfoByDeviceName", {
    params: {
      sDataTable: "a_863313062572121_单路振弦温度_1",
      type: "1",
      page: "5",
      limit: "360"
    }
  })
}
export const getHistoryData15 = () => {
  return request.get("/api/getDeviceHistoryInfoByDeviceName", {
    params: {
      sDataTable: "a_863313062572121_单路振弦温度_1",
      type: "1",
      page: "6",
      limit: "360"
    }
  })
}
export const getHistoryData16 = () => {
  return request.get("/api/getDeviceHistoryInfoByDeviceName", {
    params: {
      sDataTable: "a_863313062572121_单路振弦温度_1",
      type: "1",
      page: "7",
      limit: "360"
    }
  })
}
export const getHistoryData17 = () => {
  return request.get("/api/getDeviceHistoryInfoByDeviceName", {
    params: {
      sDataTable: "a_863313062572121_单路振弦温度_1",
      type: "1",
      page: "8",
      limit: "360"
    }
  })
}
export const getHistoryData18 = () => {
  return request.get("/api/getDeviceHistoryInfoByDeviceName", {
    params: {
      sDataTable: "a_863313062572121_单路振弦温度_1",
      type: "1",
      page: "9",
      limit: "360"
    }
  })
}
export const getHistoryData19 = () => {
  return request.get("/api/getDeviceHistoryInfoByDeviceName", {
    params: {
      sDataTable: "a_863313062572121_单路振弦温度_1",
      type: "1",
      page: "10",
      limit: "360"
    }
  })
}
// 。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
export const getHistoryData2 = () => {
  return request.get("/api/getDeviceHistoryInfoByDeviceName", {
    params: {
      sDataTable: "a_863313062572121_土壤_3_sd",
      type: "1",
      page: "1",
      limit: "10"
    }
  })
}
// 。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
export const getHistoryData3 = () => {
  return request.get("/api/getDeviceHistoryInfoByDeviceName", {
    params: {
      sDataTable: "a_863313062572121_土壤_3_wd",
      type: "1",
      page: "1",
      limit: "10"
    }
  })
}
// 。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
export const getHistoryData4 = () => {
  return request.get("/api/getDeviceHistoryInfoByDeviceName", {
    params: {
      sDataTable: "a_863313062572121_雨量计_2",
      type: "1",
      page: "1",
      limit: "10"
    }
  })
}
export default {
  setup() {

  }
}